/**
 * Copyright 2011 Enjoy Change, Inc. All rights reserved.
 * Use is subject to license terms.
 */
package com.enjoychange.enjoy.application;

import com.enjoychange.enjoy.domain.Account;
import com.enjoychange.enjoy.exception.AccountException;

/**
 * @author Administrator
 * @date   May 31, 2011
 */
public interface IAccountService {
   /**
    * 创建账号，用户
    * @param account 被创建用户信息
    * @throws AccountException
    */
	public void createAccount(Account account) throws AccountException;
    /**
     * 登录，验证用户正确性
     * 首先实现用户名、密码正确性
     * @param account
     * @throws AccountException
     *         用户名或者密码错误扔出异常
     */
	public void login(Account account)throws AccountException;
}
